package com.WISSC.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;

/**
 * <p>
 * 学员信息
 * </p>
 *
 * @author 张凯
 * @since 2019-05-05
 */
@ApiModel(value="Student对象", description="学员信息")
public class Student extends Model<Student> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "学员姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "身份证号")
    @TableField("id_number")
    private String idNumber;

    @ApiModelProperty(value = "性别 1男 2女")
    @TableField("sex")
    private Integer sex;

    @ApiModelProperty(value = "注册时间")
    @TableField("reg_time")
    private Long regTime;

    @ApiModelProperty(value = "地区")
    @TableField("city")
    private String city;

    @ApiModelProperty(value = "1.新增 2.修改 3删除 4当前最新数据")
    @TableField("flag" )
    private Integer flag;

    @ApiModelProperty(value = "修改前id")
    @TableField("before_id")
    private Long beforeId;

    @ApiModelProperty(value = "审核状态")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "科目选择")
    @TableField(exist = false)
    private Integer subject;

    @TableField(exist = false)
    private Integer countPerson;

    @ApiModelProperty(value = "等级")
    @TableField(exist = false)
    private Integer subjectLevel;
    //证件编号
    @TableField(exist = false)
    private String idNo;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @TableField(exist = false)
    private List<String> pids;

    //证书图片地址
    @ApiModelProperty(value = "图片地址")
    @TableField(exist = false)
    private String imageUrl;

    //证书次表id
    @TableField(exist = false)
    private Long stuId;

    @TableField(exist = false)
    private Integer count;

    @TableField(exist = false)
    private Integer cc;


    public Long getBeforeId() {
        return beforeId;
    }

    public void setBeforeId(Long beforeId) {
        this.beforeId = beforeId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public void setSubjectLevel(Integer subjectLevel) {
        this.subjectLevel = subjectLevel;
    }

    public Integer getCountPerson() {
        return countPerson;
    }

    public void setCountPerson(Integer countPerson) {
        this.countPerson = countPerson;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public Integer getCc() {
        return cc;
    }

    public void setCc(Integer cc) {
        this.cc = cc;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Long getStuId() {
        return stuId;
    }

    public void setStuId(Long stuId) {
        this.stuId = stuId;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public List<String> getPids() {
        return pids;
    }

    public void setPids(List<String> pids) {
        this.pids = pids;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }
    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }
    public Long getRegTime() {
        return regTime;
    }

    public void setRegTime(Long regTime) {
        this.regTime = regTime;
    }
    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }
    public Integer getSubject() {
        return subject;
    }

    public void setSubject(Integer subject) {
        this.subject = subject;
    }
    public Integer getSubjectLevel() {
        return subjectLevel;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", sex=" + sex +
                ", regTime=" + regTime +
                ", city='" + city + '\'' +
                ", flag=" + flag +
                ", type=" + type +
                ", subject=" + subject +
                ", countPerson=" + countPerson +
                ", subjectLevel=" + subjectLevel +
                ", idNo='" + idNo + '\'' +
                ", createTime=" + createTime +
                ", pids=" + pids +
                ", imageUrl='" + imageUrl + '\'' +
                ", stuId=" + stuId +
                ", count=" + count +
                ", cc=" + cc +
                '}';
    }
}
